﻿@using ECG.WebUI.CustomHelpers
@model IEnumerable<ECG.Common.ViewBannerClientDto>
@{
    var bannerFilter = Model.Where(m => m.PageKey == "TRANG-CHU" & m.PositionKey == "BANNER-GIUA-TRANG-CHU");
}
@if (bannerFilter.Any())
{
    <div class="advCenter clearfix">
            @foreach (var item in bannerFilter.OrderBy(m => m.BannerImageOrder))
            {
                <a href="@string.Format("{0}", string.IsNullOrEmpty(item.Url) ? "javascript:void(0);" : item.Url)" title="@item.Title" class="fl">
                    <img src="@item.ImagePath.ImagePathThumb(item.Width, item.Height)" width="@item.Width" height="@item.Height" alt="@item.Description" />
                </a>
            }
    </div>
}